package com.example.x.dnuifood_929dx.iface;

/**
 * Created by X on 2018/10/15.
 */
 import com.example.x.dnuifood_929dx.listener.onRetrofitListener;
public interface Useriface {

    void login(String username,String userpass,
               onRetrofitListener listener);

    void  register(String username ,
                   String userpass,
                   String mobilenum,
                   String address,
                   String comment,
                   onRetrofitListener listener);
    void getAllUserCollection(
            String user_id,
            String flag,
            onRetrofitListener listener
    );
    void userCollectFood(
            String user_id,
            String food_id,
            onRetrofitListener listener);

    void userCollectShop(
            String user_id,
            String shop_id,
            onRetrofitListener listener);


    void getUserById(
            String user_id,
            onRetrofitListener listener
    );
    void updateUserById(

            String user_id,
            String username,
            String userpass,
            String mobilenum,
            String address,
            onRetrofitListener listener

    );
}
